package com.thyrsus.project.object;

import java.io.Serializable;

import com.thyrsus.project.dao.user.entity.User;

/**
 * The user Object contains the minimum of informations
 * about the user.
 * @author maximiliense
 *
 */
public class UserObject implements Serializable {

	private static final long serialVersionUID = 9L;
	
	private Long id;
	private String mail;
	private String firstName;
	private String lastName;
	
	public UserObject(){}
	
	public UserObject(User user){
		this.id = user.getId().getId();
		this.mail = user.getMail();
		this.firstName = user.getFirstName();
		this.lastName = user.getLastName();
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
}
